<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
$(function(){   
	$("#wishListTable Button").click(function(){		
		
		var boardNo= $(this).parent().parent().children().eq(0).text(); 
		var bt= $(this).parent().parent().children().eq(1).text(); 
		$.ajax({
			type:"post",
			url:"${initParam.root}member/auth_delMyWishList.do",
			datatype:"json",  
			data:"boardNo="+boardNo+"&boardTitle="+bt,
			success:function(data){
				alert(data.boardTitle+"를 찜목록에서 삭제하였습니다.");
				 var url="${initParam.root}member/wishListView.do";
				 $(location).attr('href',url); 
			}//callback
		});//ajax
	});//click
});//ready
</script>

	<table id="wishListTable" class="list">		
		<thead>
		<tr>
			<th class="no">게시물번호</th>
			<th class="title">게시물제목</th>		
		    <th class="title">삭제버튼</th>		
			</tr>
		</thead>	
		<tbody>	
	 	 <c:forEach var="vo" items="${sessionScope.mvo.wishList.itemList}">				
			<tr>				
				<td>${vo.boardNo}</td>
			    <td><a href="${initParam.root}auction/showContent.do?boardNo=${vo.boardNo}">${vo.boardTitle}</a></td>
				<td><Button>삭제</Button></td>
			</tr>	
			</c:forEach>  
		</tbody>					
	</table>